package com.dianwoba.core.solr;

import java.util.ArrayList;
import java.util.Map;

public class SolrResultList<T> extends ArrayList<T> {
	private static final long serialVersionUID = -1442882874392398833L;

	private long totalHits = 0;

	private Map<String,Map<String,Long>> facetMap = null;
	
	public long getTotalHits() {
		return totalHits;
	}
	public void setTotalHits(long totalHits) {
		this.totalHits = totalHits;
	}
	public Map<String,Map<String,Long>> getFacetMap() {
		return facetMap;
	}
	public void setFacetMap(Map<String,Map<String,Long>> facetMap) {
		this.facetMap = facetMap;
	}
	public Map<String,Long> getCountMap(String facetName){
		return facetMap.get(facetName);
	}

}
